<% extends "common/msui.html" %>
<% block title %>活动<% endblock %>
<% block body %>
<% set wall = _pool.get('weixin.advertising.wall').read(wall_id, ['document']) %>
<div class="page" id='brands' ms-controller='document'>
  <header class="bar bar-nav">
    <h1 class="title">活动</h1>
    <a class="button button-link button-nav pull-left back" href="/mshop/index" >
      <span class="icon icon-left"></span>
      返回
    </a>
  </header>

  <div class='content '>
    <div class='wall-document' ms-html='wall.document' />
  </div>


  <script type="application/javascript">
  $(function() {
    var wall = ${ wall | tojson| safe };

    var document_vm = avalon.define({
        $id: 'document',
        wall: wall,
    });

    avalon.scan();
  });
  </script>
<% endblock %>
</div>